using System;

using PowerPoint = Microsoft.Office.Interop.PowerPoint;
using PPGraph = Microsoft.Office.Interop.Graph;

using Outcoding.GraphGenerator.Entities;

namespace Outcoding.GraphGenerator.Generator.Util {
    public class MarkerStyleHelper {
        
        public static PPGraph.XlMarkerStyle ConvertFromEnum(Entities.MarkerStyle markerStyle){
            PPGraph.XlMarkerStyle style = Microsoft.Office.Interop.Graph.XlMarkerStyle.xlMarkerStyleNone;
            switch(markerStyle){
                case MarkerStyle.msBigSquare:
                    style = PPGraph.XlMarkerStyle.xlMarkerStyleSquare;
                    break;
                case MarkerStyle.msRhombus:
                    style = PPGraph.XlMarkerStyle.xlMarkerStyleDiamond;
                    break;
                case MarkerStyle.msSquare:
                    style = PPGraph.XlMarkerStyle.xlMarkerStyleSquare;
                    break;
                case MarkerStyle.msStar:
                    style = PPGraph.XlMarkerStyle.xlMarkerStyleStar;
                    break;
                case MarkerStyle.msTriangle:
                    style = PPGraph.XlMarkerStyle.xlMarkerStyleTriangle;
                    break;
                default:
                    break;
            }

            return style;
        }
    }
}
